#include "widget.h"
#include <QPushButton>
#include <QVBoxLayout>
#include <QGridLayout>
#include <QLabel>
#include <QSlider>
#include <QImage>
#include <QFileDialog>
#include "tools/imagecoloradjusterTextWidget.h"
#include "tools/VolumeControlWidget/volumecontrolwidget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)

{
    btn1 = new QPushButton(this) ;
    btn1->setFixedSize(200,100);
    btn1->setText("打开图片色彩调节界面");
    connect(btn1,&QPushButton::clicked, [=]{
        ImageColorAdjusterTextWidget *imageColorAdjusterWidget = new ImageColorAdjusterTextWidget();
        imageColorAdjusterWidget->show();
    }) ;


    btn2 = new QPushButton(this) ;
    btn2->setFixedSize(200,100);
    btn2->setText("打开音量控制");
    connect(btn2,&QPushButton::clicked, [=]{
        VolumeControlWidget *volumeControlWidget = new VolumeControlWidget();
        volumeControlWidget->show();
    }) ;



   QGridLayout *gridLayout = new QGridLayout(this) ;
   gridLayout->addWidget(btn1);
   gridLayout->addWidget(btn2);
   this->setLayout(gridLayout);


}

Widget::~Widget()
{
}
